package com.biz.model.Hmodel.sys;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * TuserRole entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_user_role")
public class TuserRole implements java.io.Serializable {

	// Fields

	private String id;
	private String userid;
	private String roleid;

	// Constructors

	/** default constructor */
	public TuserRole() {
	}

	/** full constructor */
	public TuserRole(String userid, String roleid) {
		this.userid = userid;
		this.roleid = roleid;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false, length = 40)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "userid", length = 40)
	public String getUserid() {
		return this.userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	@Column(name = "roleid", length = 40)
	public String getRoleid() {
		return this.roleid;
	}

	public void setRoleid(String roleid) {
		this.roleid = roleid;
	}

}